package com.dz.finance.common.service;

import com.dtflys.forest.annotation.*;
import org.springframework.stereotype.Component;

import java.util.Map;


/*
 * 采用Forest框架发起http请求
 * 参考文档: https://forest.dtflyx.com/pages/1.5.36
 * */
@Component
@Retry(maxRetryCount = "3", maxRetryInterval = "10") // 最大重试次数3次，重试间隔10毫秒
public interface HttpClient {


    /*
     * 第三方短信验证码接口
     * */
    @Post("http://api.guoyangyun.com/api/sms/smsoto.htm")
    void smsSend(@Body Map<String, String> params);



}
